package cn.tudu.boot12.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

@Controller
public class test {
    @RequestMapping("/hello")
    public  void hello(HttpServletResponse response) throws IOException {
         response.setContentType("text/html;charset=utf-8");
        PrintWriter pw = response.getWriter();
        pw.print("牛逼");
        pw.close();
    }
}
